package com.charger.topuphistory.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.PromoteOperations.domain.Client;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 充值记录对象 topuphistory
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Data
public class Topuphistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值记录主键 */
    private Long topuphistoryId;

    /** 充值订单号 */
    @Excel(name = "充值订单号")
    private String orderNum;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 客户id（外键） */
    @Excel(name = "客户id", readConverterExp = "外=键")
    private Long clientId;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String transType;

    /** 充值对象 */
    @Excel(name = "充值对象")
    private String paySb;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private String payMoney;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private String withMoney;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String transactionStatus;

    /** $column.columnComment */
    private Long del;
    @TableField(exist = false)
    private Client client;

    public void setTopuphistoryId(Long topuphistoryId) 
    {
        this.topuphistoryId = topuphistoryId;
    }

    public Long getTopuphistoryId() 
    {
        return topuphistoryId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setTransType(String transType) 
    {
        this.transType = transType;
    }

    public String getTransType() 
    {
        return transType;
    }
    public void setPaySb(String paySb) 
    {
        this.paySb = paySb;
    }

    public String getPaySb() 
    {
        return paySb;
    }
    public void setPayMoney(String payMoney) 
    {
        this.payMoney = payMoney;
    }

    public String getPayMoney() 
    {
        return payMoney;
    }
    public void setWithMoney(String withMoney) 
    {
        this.withMoney = withMoney;
    }

    public String getWithMoney() 
    {
        return withMoney;
    }
    public void setTransactionStatus(String transactionStatus) 
    {
        this.transactionStatus = transactionStatus;
    }

    public String getTransactionStatus() 
    {
        return transactionStatus;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("topuphistoryId", getTopuphistoryId())
            .append("orderNum", getOrderNum())
            .append("orderTime", getOrderTime())
            .append("clientId", getClientId())
            .append("transType", getTransType())
            .append("paySb", getPaySb())
            .append("payMoney", getPayMoney())
            .append("withMoney", getWithMoney())
            .append("transactionStatus", getTransactionStatus())
            .append("del", getDel())
            .toString();
    }
}
